const ZM = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];
export const sloveList = (list)=>{
	if (!list) {
		uni.showToast({
			"title": "城市数据取得失败！"
		});
		return [];
	} else {
		let temp = [];
		ZM.forEach(el=>{
			temp.push({
				"letter":el,
				"data":[]
			})
		});
		temp.forEach((item,index)=>{
			list.forEach(el=>{
				if(el.py.slice(0,1).toUpperCase()==item.letter){
					temp[index].data.push(el.nm);
				}
			});
		});
		return temp;
	}
}